/*
 * @Author: wwssaabb
 * @Date: 2021-12-14 08:52:22
 * @LastEditTime: 2021-12-14 08:57:21
 * @FilePath: \handwritten-code\promise\reject.js
 */

/* 
  Promise.reject()
*/

Promise.prototype.myReject = function (reason) {
  return new Promise((_, reject) => reject(reason))
}